package com.sjzxywlkj.cplife.alipay.conn;

import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.api.request.AlipayEcoCplifePayResultQueryRequest;
import com.alipay.api.response.AlipayEcoCplifePayResultQueryResponse;
import com.sjzxywlkj.cplife.alipay.config.AlipayConfig;
import com.sjzxywlkj.cplife.alipay.request.entity.PayResultquery;

/**
 * 查询单笔物业费交易关联账单详情操作
 */
public class PayResultConn {

    public static AlipayEcoCplifePayResultQueryResponse query(PayResultquery payResultquery, String app_auth_token) throws AlipayApiException {
        AlipayClient alipayClient = AlipayConfig.aClient();
        AlipayEcoCplifePayResultQueryRequest request = new AlipayEcoCplifePayResultQueryRequest();
        request.putOtherTextParam("app_auth_token", app_auth_token);
        request.setBizContent(payResultquery.toJson());
        AlipayEcoCplifePayResultQueryResponse response = alipayClient.execute(request);
        return response;
    }
}
